// 权限页面接口
import request from "@/utils/request";

// 获取权限列表
export const getPermissionList = () => request({
    url:'/sys/permission'
})

// 新增权限
export const addPermission = data => request({
    url: '/sys/permission',
    method: 'POST',
    data
})

// 获取权限点详情
export const gethhh = id => request({
    url: `/sys/permission/${id}`
})

// 修改权限点
export const updetePermission = data => request({
    url: `/sys/permission/${data.id}`,
    method: 'PUT',
    data
})

export const delPermission = id => request({
    url: `/sys/permission/${id}`,
    method:'DELETE'
})